﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage/AdminMasterPage.master" AutoEventWireup="true" CodeFile="Dic_CodeTable.aspx.cs" Inherits="Admin_Sys_Dic_Dic_CodeTable" %>


<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="width: 100%; min-width: 700px">
        <div style="padding-right: 12px; display: block;">
            <table width="100%" cellspacing="0" cellpadding="0" class="AddTable" align="left">
                <tr>
                    <td width="80px">字典类别
                    </td>
                    <td>
                        <yncWebDDL:DrpCodeTable Category="CATEGORY" ID="drpCate" ShowSelectedItem="false" AutoPostBack="true" runat="server"></yncWebDDL:DrpCodeTable>
                    </td>
                    <td></td>
                    <td width="60px" align="center">
                        <%=GetAddLink("Dic_CodeTable_A.aspx?cat=" + drpCate.SelectedValue, null, 500, 400)%>
                    </td>
                </tr>
            </table>
        </div>
        <yncWeb:PagnationGrid PageSize="30" ID="pageGrid" runat="server" OnOnPageIndexChange="PageChanged">
            <HeaderTemplate>
                <table width="100%" cellspacing="0" cellpadding="0" class="pagnationtable" align="left">
                    <thead>
                        <tr>
                            <th width="40px">序号
                            </th>
                            <th width="160px">字典代码
                            </th>
                            <th>值1(名称)</th>
                            <th>值2</th>
                            <th width="200px">有效日期
                            </th>
                            <th width="80px">序号
                            </th>
                            <th width="80px">类别代码
                            </th>
                            <th width="60px" class="center">修改
                            </th>
                            <th width="60px" class="center">删除
                            </th>
                        </tr>
                    </thead>
                    <tbody>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <%# Container.ItemIndex +1 %>
                    </td>
                    <td>
                        <%# Eval(TSCodeTableMetadata.ColumnNames.Code) %>
                    </td>
                    <td>
                        <%# Eval(TSCodeTableMetadata.ColumnNames.Value1)%>
                    </td>
                    <td>
                        <%# Eval(TSCodeTableMetadata.ColumnNames.Value2)%>
                    </td>

                    <td>
                        <%# Eval(TSCodeTableMetadata.ColumnNames.EffectiveStartDate).FormatDate(ConstantValue.DateFormat)%> - <%# Eval(TSCodeTableMetadata.ColumnNames.EffectiveEndDate).FormatDate(ConstantValue.DateFormat)%>
                    </td>
                    <td>
                        <%# Eval(TSCodeTableMetadata.ColumnNames.CodeSequence)%>
                    </td>
                    <td>
                        <%# Eval(TSCodeTableMetadata.ColumnNames.CodeCategory)%>
                    </td>
                    <td class="center action">
                        <%# GetUpdateLink("Dic_CodeTable_A.aspx?cat=" + category, Container.DataItem, 500, 400, TSCodeTableMetadata.ColumnNames.CodeID)%>
                    </td>
                    <td class="center action">
                      <font color="gray">删除</font>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody> </table>
            </FooterTemplate>
        </yncWeb:PagnationGrid>
    </div>
</asp:Content>



